﻿@{
    ViewBag.Title = "CampaignDetail";
    Layout = "~/Views/Shared/_LayoutContent.cshtml";
}
<div class="dvArrActive">
    <div class="dvColNgay" style="text-align: left;">
        Chiến dịch
    </div>    
    <div class="dvColNgay" style="text-align: left;">
        Nhà đài
    </div>
</div>
<div class="clear">
</div>
<div class="dvBoxStation" style="position: relative; margin-top: 10px; border: 0 none !important;">
    <div class="dvWidth5">
    </div>
    <div class="dvWidth175 textGrv" style="font-weight: bold;">
        @ViewBag.Campaign
    </div>
    <div class="dvWidth5">
    </div>
    <div class="dvWidth175 textGrv" style="font-weight: bold; width: 215px !important;">
        @ViewBag.DistrictName
    </div>
</div>
<div class="clear">
</div>
<div class="dvArrActive">
    <div class="dvColNgay">
        Ngày
    </div>
    <div class="dvColBorder">
    </div>
    <div class="dvColNgay">
        File Monitor
    </div>
</div>
<div class="clear">
</div>
@{int intSTT = 0;
  string strId = "IdPlayer";
}
<div class="dvBoxStation" style="position: relative; margin-top: 10px; border: 0 none !important;">
    @foreach (VoiceAd.Models.tblMonitor objMonitor in ViewBag.lstMonitor)
    {
        <div class="dvWidth5">
        </div>
        <div class="dvWidth215 textGrv">
            @objMonitor.UploadDay.Value.ToString("dd/MM/yyyy")
        </div>
        <div class="dvWidth5">
        </div>
        <div class="dvWidth215 textGrv" style="width: 300px !important;">
            @objMonitor.UrlFile
        </div>
        <div class="dvWidth5">
        </div>
        <div class="dvWidth215 textGrv">
            @{ strId = "IdPlayer" + intSTT.ToString();
            }
            <div id="@strId">
            </div>
            <script type="text/javascript">
                jwplayer("@strId").setup({
                    modes: [{ type: 'html5' }, { type: 'flash', src: 'jwplayer.flash.swf'}],
                    image: '/images/bgsctv.jpg',
                    file: '@Url.Content("~/uploads/" + @objMonitor.UrlFile)',
                    autostart: 'false',
                    type: 'mp3',
                    width: '200',
                    height: '30'
                });
            </script>
        </div>
               intSTT++;
        <div class="clear">
        </div>
    }
</div>
